#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<assert.h>
void* my_memcpy(void* dest, const void* src, size_t num)
{
	void* re = dest;
	assert(dest && src);
	while (num--)
	{
		*(char*)dest = *(char*)src;
		dest = (char*)dest + 1;
		src = (char*)src + 1;

	}
	return re;
}
int main()
{
	int arr[] = { 1,2,3,5,9,8,7,6,3,2,1 };
	int arr1[20] = { 0 };
	my_memcpy(arr1, arr + 3, 17);
	return 0;
}